package com.mvp.lt.airlineview.data.event;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * $activityName
 * 广告类型
 * @author LiuTao
 * @date 2019/3/21/021
 */


public class ADTabTypeBean {

    /**
     * code : 1
     * msg_customer : 操作成功
     * msg_programmer : 操作成功
     * data : [{"type_id":1,"type_name":"保险","is_hot":0},{"type_id":2,"type_name":"采矿","is_hot":0},{"type_id":3,"type_name":"能源","is_hot":0},{"type_id":4,"type_name":"餐饮","is_hot":0},{"type_id":5,"type_name":"宾馆","is_hot":0},{"type_id":6,"type_name":"电讯","is_hot":0},{"type_id":7,"type_name":"房地产","is_hot":0},{"type_id":8,"type_name":"服务","is_hot":0},{"type_id":9,"type_name":"服装","is_hot":0},{"type_id":10,"type_name":"公益组织","is_hot":0},{"type_id":11,"type_name":"广告","is_hot":0},{"type_id":12,"type_name":"航空航天","is_hot":0},{"type_id":13,"type_name":"化学","is_hot":0},{"type_id":14,"type_name":"健康","is_hot":0},{"type_id":15,"type_name":"保健","is_hot":0},{"type_id":16,"type_name":"建筑","is_hot":0},{"type_id":17,"type_name":"教育","is_hot":0},{"type_id":18,"type_name":"培训","is_hot":0},{"type_id":19,"type_name":"计算机","is_hot":0},{"type_id":20,"type_name":"金属冶炼","is_hot":0},{"type_id":21,"type_name":"警察","is_hot":0},{"type_id":22,"type_name":"消防","is_hot":0}]
     */

    private int code;
    private String msg_customer;
    private String msg_programmer;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg_customer() {
        return msg_customer;
    }

    public void setMsg_customer(String msg_customer) {
        this.msg_customer = msg_customer;
    }

    public String getMsg_programmer() {
        return msg_programmer;
    }

    public void setMsg_programmer(String msg_programmer) {
        this.msg_programmer = msg_programmer;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable{
        public DataBean() {
        }

        public DataBean(int type_id, String type_name, int is_hot) {
            this.type_id = type_id;
            this.type_name = type_name;
            this.is_hot = is_hot;
        }
        /**
         * type_id : 1
         * type_name : 保险
         * is_hot : 0
         */

        private int type_id;
        private String type_name;
        private int is_hot;

        protected DataBean(Parcel in) {
            type_id = in.readInt();
            type_name = in.readString();
            is_hot = in.readInt();
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public int getType_id() {
            return type_id;
        }

        public void setType_id(int type_id) {
            this.type_id = type_id;
        }

        public String getType_name() {
            return type_name;
        }

        public void setType_name(String type_name) {
            this.type_name = type_name;
        }

        public int getIs_hot() {
            return is_hot;
        }

        public void setIs_hot(int is_hot) {
            this.is_hot = is_hot;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeInt(type_id);
            parcel.writeString(type_name);
            parcel.writeInt(is_hot);
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "type_id=" + type_id +
                    ", type_name='" + type_name + '\'' +
                    ", is_hot=" + is_hot +
                    '}';
        }
    }
}
